package com.gc.common.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gc.common.dto.HistoryPositionBusinessDTO;
import com.gc.common.entity.HistoryPositionBusiness;

public interface HistoryPositionBusinessMapper {
    int deleteByPrimaryKey(Integer historyPositionId);

    int deleteInIds(@Param("ids") String ids);

    int deleteInHistoryIds(@Param("historyIds") String historyIds);

    int deleteInCarIds(@Param("carIds") String carIds);

    int insert(HistoryPositionBusiness record);

    int insertSelective(HistoryPositionBusiness record);

    HistoryPositionBusiness selectByPrimaryKey(Integer historyPositionId);

    List<HistoryPositionBusiness> selectByDTO(@Param("dto") HistoryPositionBusinessDTO dto);

    List<Map<String, Object>> selectLatestHistorys();

    int updateByPrimaryKeySelective(HistoryPositionBusiness record);

    int updateByPrimaryKey(HistoryPositionBusiness record);

    List<HistoryPositionBusiness> selectHistoryPositionByHistoryId(@Param("historyId") Integer historyId);
}